import QtQuick 1.0

Rectangle {
    id: mainRect
    width: 800
    height: 600
    color: "green"

    property alias nodeSize: treeView.nodeSize

    Image {
        id: backgroundImage
        source: "../media/images/background.jpg"
        asynchronous: true
        anchors.fill: parent
        height: parent.height
        width: parent.width
        z: 0
    }

    SystemPalette { id:palette }

    MainMenu {
        id: mainMenu
        anchors.horizontalCenter: parent.horizontalCenter
        z: 2
        palette: palette
        height: mainRect.height * 0.15

        onAdd: window.add(key, value);
    }

    TreeView {
        id: treeView
        anchors.bottom: mainRect.bottom
        y: mainMenu.y + mainMenu.height
        width: mainRect.width
        height: mainRect.height - mainMenu.height
        objectName: "treeView"
    }
}
